from tkinter import *
X = int(input("введите начальную координату X:"))
Y = int(input("введите начальную координату Y:"))
N = int(input("введите коофицент увеличения N:" ))

gghg = (0,0,0,1,1,1,1,2,3,2,3,1,2,1,2,0)
if N == 0 and X>=0 and X<=500 and Y>=500 and Y<=500:
    pass
else:
    if N > 0 and 0*N+X>=0 and 0*N+Y>=0 and 20*N+X<=500 and 20*N+Y<=500:
        pass
    else:
        if N < 0 and 20*N+X>=0 and 0*N+Y>=500 and 0*N+Y<=500:
            pass
        else:
            print("eror")

root = Tk()
root.title("влад пайтон")
root.geometry("500x500")

canvas = Canvas(bg="white", width=500, height=500)
canvas. pack(anchor=CENTER, expand=1)


canvas.create_polygon(gghg[0] *N+X, gghg[1] *N+Y,
                      gghg[2] *N+X, gghg[3] *N+Y,
                      gghg[4] *N+X, gghg[5] *N+Y,
                      gghg[6] *N+X, gghg[7] *N+Y,
                      gghg[8] *N+X, gghg[9] *N+Y,
                      gghg[10] *N+X, gghg[11] *N+Y,)
root.mainloop()                     
